<div class="panel panel-default">
	<div class="panel-heading">
		<?php 
			$this->widget('zii.widgets.CBreadcrumbs',array(
					'links'=>array(
						'后台管理',
						'添加用户'
				)
			));
		?>
	</div>
	<div class="panel-body">
		<?php 
			$form = $this->beginWidget('CActiveForm', array(
					'htmlOptions'=>array('class'=>'form-horizontal')
				));
		?>
			<div class="form-group">
					<?php echo $form->labelEx($userModel, 'username', array(
						'class'=>'control-label col-sm-2'
					)); ?>
				<div class="col-sm-3">
					<?php echo $form->textField($userModel, 'username', array(
						'class'=>'form-control'
					));?>
				</div>
				<div class="col-sm-3">
					<?php echo $form->error($userModel, 'username'); ?>
				</div>
			</div>
			<div class="form-group">
				<?php echo $form->labelEx($userModel, 'password', array(
					'class'=>'control-label col-sm-2'
				)); ?>
				<div class="col-sm-3">
					<?php echo $form->passwordField($userModel, 'password', array(
						'class'=>'form-control'
					));?>
				</div>
				<div class="col-sm-3">
					<?php echo $form->error($userModel, 'password'); ?>
				</div>
			</div>
			<div class="form-group">
				<?php 
					echo $form->labelEx($userModel, 'email', array(
						'class'=>'control-label col-sm-2'
						));
				?>
				<div class="col-sm-4">
				<?php echo $form->textField($userModel, 'email', array(
					'class'=>'form-control'
				)); ?>
				</div>
				<div class="col-sm-3">
				<?php echo $form->error($userModel, 'email'); ?>
				</div>
			</div>
			<div class="form-group">
				<?php echo $form->labelEx($userModel, 'status', array('class'=>'control-label col-sm-2')); ?>
				<div class="col-sm-5">
				<?php echo $form->radioButtonList($userModel, 'status', array('禁用', '启用')); ?>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-5 col-sm-offset-2">
					<?php echo $form->hiddenField($userModel, 'is_admin', array('value'=>1)); ?>
					<?php echo CHtml::submitButton($userModel->isNewRecord ? '添加' : '修改', array('class'=>'btn btn-default')); ?> 
				</div>
			</div>
		<?php $this->endWidget() ?>
	</div>
</div>